(define-module (emacs evil-exwm-state)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix build-system emacs)
  #:use-module (guix packages)
  #:use-module (gnu packages emacs)
  #:use-module (gnu packages emacs-xyz)
  #:use-module (guix git-download))

(define-public emacs-evil-exwm-state
  (let ((commit "d18f2ec089a2e0a026393d3ac7d3951b2eb9b70b")
        (revision "1"))
    (package
      (name "emacs-evil-exwm-state")
      (version
       (git-version "1.0" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri (git-reference
               (url "https://github.com/domenzain/evil-exwm-state.git")
               (commit commit)))
         (sha256
          (base32
           "1ynfcfxvhxrkry403z9w0r87wbpwcdxvgnli2ry3shb8hmlbj4y1"))))
      (build-system emacs-build-system)
      (propagated-inputs
       `(("emacs-exwm" ,emacs-exwm)
         ("emacs-evil" ,emacs-evil)))
      (home-page
       "https://github.com/domenzain/evil-exwm-state")
      (synopsis
       "Evil states for EXWM.")
      (description
       "This package adds two new Evil states:
@itemize
@item exwm state
@item exwm-insert state
@end itemize\n")
      (license license:gpl3+))))
